package com.vecspace.sso.entity;

import java.util.Date;

import javax.persistence.Column;

/** 租户
 * @author wanghua
 */
public class SSOTenant implements java.io.Serializable {
	
	public SSOTenant(){
	}
	
	private static final long serialVersionUID = 637119328838118915L;

	private Long id;
	/***/
	@Column(name="ID")
	public Long getId(){
		return id;
	}
	/***/
	public void setId(Long value){
		this.id = value;
	}

	private String customTenantId;
	/**租户ID*/
	@Column(name="CUSTOM_TENANT_ID")
	public String getCustomTenantId(){
		return customTenantId;
	}
	/**租户ID*/
	public void setCustomTenantId(String value){
		this.customTenantId = value;
	}

	private String tenantName;
	/**租户名称*/
	@Column(name="TENANT_NAME")
	public String getTenantName(){
		return tenantName;
	}
	/**租户名称*/
	public void setTenantName(String value){
		this.tenantName = value;
	}
	
	private String tenantType;
	/**租户类型，注册租户时自定义*/
	@Column(name="TENANT_TYPE")
	public String getTenantType(){
		return tenantType;
	}
	/**租户类型，注册租户时自定义*/
	public void setTenantType(String value){
		this.tenantType = value;
	}
	
	private Integer validStatus;
	/**有效性*/
	@Column(name="VALID_STATUS")
	public Integer getValidStatus(){
		return validStatus;
	}
	/**有效性*/
	public void setValidStatus(Integer value){
		this.validStatus = value;
	}
	
	private Integer ordnum;
	/**顺序号*/
	@Column(name="ORDNUM")
	public Integer getOrdnum() {
		return ordnum;
	}
	/**顺序号*/
	public void setOrdnum(Integer ordnum) {
		this.ordnum = ordnum;
	}
	
	private Date createTime;
	/**创建日期*/
	@Column(name="CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}
	/**创建日期*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	
	private Integer nf;
	
	/**年份*/
	@Column(name="NF")
	public Integer getNf() {
		return nf;
	}
	public void setNf(Integer nf) {
		this.nf = nf;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj == null)return false;
		if(id == null)return false;
		SSOTenant other = (SSOTenant)obj;
		return id.equals(other.id);
	}

	@Override
	public int hashCode() {
		if(id == null)return 0;
		return id.hashCode();
	}
}
